﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Program21
{
    class Program
    {
        static void Main(string[] args)
        {
           Console.WriteLine(GetSum(5,8,9));
        }

        public static int GetSum(params int[] n)
        {
            var sum = 0;
            for (int i = 0; i < n.Length; i++)
            {
                sum += n[i];
            }
            return sum;
        }
    }
}
